Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
ColorResolutionCommand Constructor(ColorResolutionCommandMode,Int32,RasterByteOrder,RasterDitheringMethod,ColorResolutionCommandPaletteFlags,Color[])
See Also 
Leadtools.ImageProcessing Namespace > ColorResolutionCommand Class > ColorResolutionCommand Constructor : ColorResolutionCommand Constructor(ColorResolutionCommandMode,Int32,RasterByteOrder,RasterDitheringMethod,ColorResolutionCommandPaletteFlags,Color[])



mode
Behaviour of the command.
bitsPerPixel
The number of bits per pixel to for the conversion. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 24, 32, 48 and 64.
order
The desired color order for the conversion.
ditheringMethod
Dithering options, useful only when the resulting image requires a palette (when it is 8 bits per pixel or less).
paletteFlags
Palette options, useful only when the resulting image requires a palette (when it is 8 bits per pixel or less).
palette
The custom palette to use.
Initializes a new ColorResolutionCommand with explicit parameters.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal mode As ColorResolutionCommandMode, _
   ByVal bitsPerPixel As Integer, _
   ByVal order As RasterByteOrder, _
   ByVal ditheringMethod As RasterDitheringMethod, _
   ByVal paletteFlags As ColorResolutionCommandPaletteFlags, _
   ByVal palette() As Color _
)
Visual Basic (Usage)Copy Code
Dim mode As ColorResolutionCommandMode
Dim bitsPerPixel As Integer
Dim order As RasterByteOrder
Dim ditheringMethod As RasterDitheringMethod
Dim paletteFlags As ColorResolutionCommandPaletteFlags
Dim palette() As Color
 
Dim instance As ColorResolutionCommand(mode, bitsPerPixel, order, ditheringMethod, paletteFlags, palette)

Parameters

mode
Behaviour of the command.
bitsPerPixel
The number of bits per pixel to for the conversion. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 24, 32, 48 and 64.
order
The desired color order for the conversion.
ditheringMethod
Dithering options, useful only when the resulting image requires a palette (when it is 8 bits per pixel or less).
paletteFlags
Palette options, useful only when the resulting image requires a palette (when it is 8 bits per pixel or less).
palette
The custom palette to use.

Example

For an example, refer to ColorResolutionCommand.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also